﻿using log4net;
using System;
using System.Data;
using System.Reflection;
using System.Text;
using TradePublish.Dao;
using System.Collections;

public class DissentTradeManager
{
    private DissentTradeDao dissentTradeDao;
    private ILog log = null;

    public DissentTradeManager()
    {
        this.log = log4net.LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
        this.dissentTradeDao = new DissentTradeDao();
    }

    public Hashtable findTopUnGraspImg(int length)
    {
        return this.dissentTradeDao.findTopUnGraspImg(length );
    }

    public void setHasGraspImage(string regNo, bool hasGrasped)
    {
        this.dissentTradeDao.setHasGraspImage(regNo, hasGrasped);
    }

    public bool verifyHasGrasped(string regNo)
    {
        return this.dissentTradeDao.verifyHasGrasped(regNo);
    }
}

